__all__ = ['User'] # 只是针对 from 包.模块 import * 的情况，指定导入的类、函数、变量
version = '1.0'

class User:
    def __init__(self, username, password):
        self.username = username
        self.password = password

    def login(self, username, password):
        if self.username == username and self.password == password:
            print('登录成功')
        else:
            print('登录失败')

    def publish_article(self,article):
        print(self.username,'发布文章:',article.name)

    def show(self):
        print('用户名：{}，密码：{}'.format(self.username, self.password))

# print('-----user-----')

if __name__ == '__main__':
    print('-----user-----')









